package socket

import (
	"log"
	"net"
	"os"
)

func socketClient() {

	tcpAdree, err := net.ResolveTCPAddr("tcp", ":8085")
	if err != nil {
		log.Println("err:", err)
		return
	}
	conn, err := net.DialTCP("tcp", nil, tcpAdree)
	if err != nil {
		log.Println("err:", err)
		return
	}
	conn.Write([]byte("HEAD / HTTP/1.0\r\n\r\n"))
	res := make([]byte, 256)
	_, err = conn.Read(res)
	if err != nil {
		log.Println("err:", err)
		return
	}
	log.Println(string(res))
	os.Exit(0)
}
